#ifndef GP_MEMORY
#define GP_MEMORY
#include "GpInclude.h"

class GpMemory
{
public:
	GpMemory();
	~GpMemory();

	void Attach(char* acBuf,int iSize);
	void Detach();

	int		GetDataSize();
	void	SetPos(int iPos);
	int		GetPos();

public:
	void	WriteBuf(char* acBuf,int iSize);
	void	ReadBuf(char* acBuf,int iSize);

private:
	int		m_iSize;
	int		m_iPos;
	char*	m_acData;
};
#endif

